package com.example.pulseanalyse.veinType;

import java.util.List;

/**
 * @author: yyw
 * time: 2020/12/8 11:37
 * desc:前端报告用到（我暂时不用）
 */
public class synContext {

    synPulseType synPulse;
    List<String> list;


    /// <summary>
    ///
    /// </summary>
    /// <param name="_handPos">手位置</param>
    /// <param name="_strList">脉型List</param>
    public void synNewContext(String _handPos) {
        switch (_handPos) {
            case "左-寸":
                synPulse = new synPulseType.LeftCun();
                break;
            case "左-关":
                synPulse = new synPulseType.LeftGuan();
                break;
            case "左-尺":
                synPulse = new synPulseType.LeftChi();
                break;
            case "右-寸":
                synPulse = new synPulseType.RightCun();
                break;
            case "右-关":
                synPulse = new synPulseType.RightGuan();
                break;
            case "右-尺":
                synPulse = new synPulseType.RightChi();
                break;
        }
    }

    public void setPulseType(List<String> _strList) {
        synPulse.addPulseType(_strList);
    }
}
